import request from '@/utils/request';

// 查询大屏数据
export function getStatistic(query) {
  return request({
    url: '/stat/statistic',
    method: 'get',
    params: query,
  });
}

// 查询安全指数趋势
export function getSafetyIndex(query) {
  return request({
    url: '/stat/getSafetyIndex',
    method: 'get',
    params: query,
  });
}

// 查询实时安全指数
export function statisticSafetyIndex(query) {
  return request({
    url: '/stat/getRealtimeSafetyIndex',
    method: 'get',
    params: query,
  });
}

// 查询告警信息
export function statisticAlertCategoryInfo(query) {
  return request({
    url: '/stat/statisticAlertCategoryInfo',
    method: 'get',
    params: query,
  });
}

// 查询告警信息
export function statisticAlertInfo(query) {
  return request({
    url: '/stat/statisticAlertInfo',
    method: 'get',
    params: query,
  });
}

// 查询产品分类
export function statisticProductCategory(query) {
  return request({
    url: '/stat/statisticProductCategory',
    method: 'get',
    params: query,
  });
}

// 查询视频列表
export function getLiveVideo(query) {
  return request({
    url: '/stat/getLiveVideo',
    method: 'get',
    params: query
  })
}
